﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// Summary description for BangTinNhan
/// </summary>
public class BangTinNhan
{
    ConnectionProcess  cp = new ConnectionProcess();
	public BangTinNhan()
	{
		//
		// TODO: Add constructor logic here
		//
        
	}
    public DataTable Load_BTNhan()
    {
        return cp.Get_data("Load_BTNhan");
    }
    public void Delete_bangtin(string ma)
    {
        SqlParameter p1 = new SqlParameter("@Ma",ma);
        cp.thuchienlenh("Delete_bangtin",p1);
    }
    public DataTable Load_TimKiemUser(string ten)
    {
        SqlParameter p1 = new SqlParameter("@ten",ten);
        return cp.Get_data("Load_TimKiemUser",p1);
    }
}
